package com.yanu.trace.t2s.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
public class User {
    private int id;
    private int enter_id;
    private int type;
    private String name;
    private int sex;
    private String telephone;
    private String email;
    private String username;
    private String password;
    private Date hire_date;
    @TableField(exist=false)
    private Enterprise enterprise;
    public User(){};


    public User(int id, int enter_id, int type, String name, int sex, String telephone, String email, String username, String password, Date hire_date) {
        this.id = id;
        this.enter_id = enter_id;
        this.type = type;
        this.name = name;
        this.sex = sex;
        this.telephone = telephone;
        this.email = email;
        this.username = username;
        this.password = password;
        this.hire_date = hire_date;
    }
}
